#ifndef DATA_H_INCLUDED
#define DATA_H_INCLUDED

#include <iostream>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>


using namespace std;

class Data
{
public :
    Data();
    Data(const char *input_file, const char *output_file);
   ~Data();

    void init_data(const unsigned int count);

    int read_data(FILE* f, int a[], int n);
    int read_data(int *arr, unsigned int count);

    void write_data(FILE* f, int a[], int n);
    int write_data(int *arr, unsigned int count);

    char* temp_filename(int index);


private:
    char *input;
    char *output;

};

#endif // DATA_H_INCLUDED
